<include file="public/layout" />
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>消息管理- 编辑消息</h3>
                <h5>网站系统消息管理</h5>
            </div>
        </div>
    </div>
    <form class="form-horizontal" id="handleposition" action="{:U('Admin/User/upd_message')}" method="post">
        <input type="hidden" name="message_id" value="{$messageInfo.message_id}">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label for="level_name"><em>*</em>消息ID:</label>
                </dt>
                <dd class="opt">
                    <input type="text"  value="{$messageInfo.message_id}"  class="input-txt" readOnly="true">
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="amount"><em>*</em>管理ID</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="admin_id" value="{$messageInfo.admin_id}"  class="input-txt" readOnly="true">
                </dd>
            </dl>
              <dl class="row">
                <dt class="tit">
                    <label for="amount"><em>*</em>消息种类</label>
                </dt>
                <dd class="opt">
                	<input type="text" name="admin_id" value="{$messageCategory[$messageInfo.category]}"  class="input-txt" readOnly="true">
                </dd>
            </dl>
              <dl class="row">
                <dt class="tit">
                    <label for="amount"><em>*</em>消息类型</label>
                </dt>
                <dd class="opt">
                	<input type="text" name="admin_id" value="{$messageType[$messageInfo.type]}"  class="input-txt" readOnly="true">
                </dd>
            </dl>
             <dl class="row" id="userid" <if $messageInfo.type == 1>style="display:none"</if>>
                <dt class="tit">
                    <label for="amount"><em>*</em>消息接收人</label>
                </dt>
                <dd class="opt">
                	 <input type="text" name="admin_id" value="{$messageInfo.nickname}"  class="input-txt" readOnly="true">
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
					<label for="amount"><em>*</em>消息内容</label>
                </dt>
                <dd class="opt">
                    <textarea  name="message" class="tarea" rows="6">{$messageInfo.message}</textarea>
                    <span class="err"></span>
                    <p class="notic">发送的消息</p>
                </dd>
            </dl>
            <div class="bot"><a href="JavaScript:void(0);" onclick="$('#handleposition').submit();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>
        </div>
    </form>
</div>
<script type="text/javascript">
$(document).ready(function(){

});

</script>
</body>
</html>